package cn.com.lms.business.examine.persistence.repository;

import java.util.List;

import com.bnzj.core.persistence.repository.BaseRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;



import cn.com.lms.business.examine.persistence.entity.FbExamineInfo;

/**
 * @Author: 16266
 * @DateTime: 2020/3/13 14:16
 * @Description: 问卷调查持久层
 */
@Repository
public interface FbExamineInfoRepository extends BaseRepository<FbExamineInfo,Long> {


    /**
     * 根据ID问卷调查详情
     * @param id
     * @return
     */
    @Modifying
    @Query(value = " select * from bnz_examine_list b where b.id = :id ",nativeQuery = true)
    List<FbExamineInfo> findAllByParentId(@Param("id") Long id);
}
